export interface RouteItem {
  menuname: Array<string>;
  asdefault?: boolean; // 默认显示
  path?: string;
  type?: boolean;
  component?: string | (() => any);
  isTabMenu?: boolean;
  tabTitle?: string;
}

export type RoutesConfig = RouteItem[];
const config: RoutesConfig = [
  {
    menuname: ['系统设置', '文档列表'],
    asdefault: true,
    path: '/systemSetup/documentLists',
    component: '../pages/systemSetup/documentLists',
  },
  {
    menuname: ['系统设置', '文档列表', '编辑/新增使用指南'],
    asdefault: true,
    path: '/systemSetup/documentLists/editor',
    component: '../pages/systemSetup/documentLists/editor',
    type: true
  },
  {
    menuname: ['系统设置', '文档列表', '查看详情'],
    asdefault: true,
    path: '/systemSetup/documentLists/details',
    component: '../pages/systemSetup/documentLists/details',
    type: true
  },
  {
    menuname: ['系统设置', '模板维护列表'],
    asdefault: true,
    path: '/systemSetup/templateMaintenanceList',
    component: '../pages/systemSetup/templateMaintenanceList',
  },
  {
    menuname: ['系统设置', '模板维护列表', '模板维护编辑'],
    asdefault: true,
    path: '/systemSetup/templateMaintenanceList/editor',
    component: '../pages/systemSetup/templateMaintenanceList/editor',
  },
  {
    menuname: ['系统设置', '模板维护列表', '模板维护新增'],
    asdefault: true,
    path: '/systemSetup/templateMaintenanceList/add',
    component: '../pages/systemSetup/templateMaintenanceList/editor',
  },
];

export default config;
